package com.web.model;

import java.io.Serializable;
import java.lang.Long;
import java.lang.String;
import java.util.Date;
import java.lang.Double;

/**
 * 用户实体</p>
 * TUser对应数据库表 tb_user
 * @author wzy
 * @project web-model
 */
public class TUser implements Serializable {

	private static final long serialVersionUID = 1L;
	
	//主键字段
	private Long userId;// 主键 user_Id
	
	private String userNo;// 用户帐号 user_no
	
	private String userName;// 用户昵称 user_name
	
	private String password;// 密码 password
	
	private Date createTime;// 注册时间 create_time
	
	private String ip;// ip ip
	
	private Date lastLoginTime;// 上一次登录时间 last_login_time
	
	private Long parentUserId;// 所属管理 parent_user_id
	
	private Double userBalance;// 用户余额 user_balance
	
	private Double creditAmt;// 信用额度 credit_amt
	
	private Long roleId;// 1管理员、2代理人、3普通用户 role_id
	
	private Double backPoint;// 返点 back_point
	
	private String qq;// QQ qq
	
	private Long userStatus;// 用户状态1正常0锁定 user_status
	
	private String oldPassword; //旧密码，用于修改密码
	
	private Double sumBalance;
	
	private Double todayWin;
	
	private String loginType;
	
	//set 和 get方法
	
	/**
	 * 主键
	 * @param userId
	 */
	public void setUserId(Long userId){
	
		this.userId=userId;
	}
	
	/**
	 * 主键
	 * @return Long
	 */
	public Long getUserId(){
	
		return this.userId;
	}
	
	/**
	 * 用户帐号
	 * @param userNo
	 */
	public void setUserNo(String userNo){
	
		this.userNo=userNo;
	}
	
	/**
	 * 用户帐号
	 * @return String
	 */
	public String getUserNo(){
	
		return this.userNo;
	}
	
	/**
	 * 用户昵称
	 * @param userName
	 */
	public void setUserName(String userName){
	
		this.userName=userName;
	}
	
	/**
	 * 用户昵称
	 * @return String
	 */
	public String getUserName(){
	
		return this.userName;
	}
	
	/**
	 * 密码
	 * @param password
	 */
	public void setPassword(String password){
	
		this.password=password;
	}
	
	/**
	 * 密码
	 * @return String
	 */
	public String getPassword(){
	
		return this.password;
	}
	
	/**
	 * 注册时间
	 * @param createTime
	 */
	public void setCreateTime(Date createTime){
	
		this.createTime=createTime;
	}
	
	/**
	 * 注册时间
	 * @return Date
	 */
	public Date getCreateTime(){
	
		return this.createTime;
	}
	
	/**
	 * ip
	 * @param ip
	 */
	public void setIp(String ip){
	
		this.ip=ip;
	}
	
	/**
	 * ip
	 * @return String
	 */
	public String getIp(){
	
		return this.ip;
	}
	
	/**
	 * 上一次登录时间
	 * @param lastLoginTime
	 */
	public void setLastLoginTime(Date lastLoginTime){
	
		this.lastLoginTime=lastLoginTime;
	}
	
	/**
	 * 上一次登录时间
	 * @return Date
	 */
	public Date getLastLoginTime(){
	
		return this.lastLoginTime;
	}
	
	/**
	 * 所属管理
	 * @param parentUserId
	 */
	public void setParentUserId(Long parentUserId){
	
		this.parentUserId=parentUserId;
	}
	
	/**
	 * 所属管理
	 * @return Long
	 */
	public Long getParentUserId(){
	
		return this.parentUserId;
	}
	
	/**
	 * 用户余额
	 * @param userBalance
	 */
	public void setUserBalance(Double userBalance){
	
		this.userBalance=userBalance;
	}
	
	/**
	 * 用户余额
	 * @return Double
	 */
	public Double getUserBalance(){
	
		return this.userBalance;
	}
	
	/**
	 * 信用额度
	 * @param creditAmt
	 */
	public void setCreditAmt(Double creditAmt){
	
		this.creditAmt=creditAmt;
	}
	
	/**
	 * 信用额度
	 * @return Double
	 */
	public Double getCreditAmt(){
	
		return this.creditAmt;
	}
	
	/**
	 * 1管理员、2代理人、3普通用户
	 * @param roleId
	 */
	public void setRoleId(Long roleId){
	
		this.roleId=roleId;
	}
	
	/**
	 * 1管理员、2代理人、3普通用户
	 * @return Long
	 */
	public Long getRoleId(){
	
		return this.roleId;
	}
	
	/**
	 * 返点
	 * @param backPoint
	 */
	public void setBackPoint(Double backPoint){
	
		this.backPoint=backPoint;
	}
	
	/**
	 * 返点
	 * @return Double
	 */
	public Double getBackPoint(){
	
		return this.backPoint;
	}
	
	/**
	 * QQ
	 * @param qq
	 */
	public void setQq(String qq){
	
		this.qq=qq;
	}
	
	/**
	 * QQ
	 * @return String
	 */
	public String getQq(){
	
		return this.qq;
	}
	
	/**
	 * 用户状态1正常0锁定
	 * @param userStatus
	 */
	public void setUserStatus(Long userStatus){
	
		this.userStatus=userStatus;
	}
	
	/**
	 * 用户状态1正常0锁定
	 * @return Long
	 */
	public Long getUserStatus(){
	
		return this.userStatus;
	}
	
	
	@Override
	public String toString() {
		
		return "TUser [userId="+userId+",userNo="+userNo+",userName="+userName+",password="+password+",createTime="+createTime+",ip="+ip+",lastLoginTime="+lastLoginTime+",parentUserId="+parentUserId+",userBalance="+userBalance+",creditAmt="+creditAmt+",roleId="+roleId+",backPoint="+backPoint+",qq="+qq+",userStatus="+userStatus+"]";
	}

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public Double getSumBalance() {
		return sumBalance;
	}

	public void setSumBalance(Double sumBalance) {
		this.sumBalance = sumBalance;
	}

	public Double getTodayWin() {
		return todayWin;
	}

	public void setTodayWin(Double todayWin) {
		this.todayWin = todayWin;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
}
